#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include <BaseWidget/zdialog.h>
#include "common.h"
#include <BaseWidget/titlewidget.h>
#include <BaseWidget/content_widget.h>
#include <BaseWidget/skin_widget.h>

class MainWindow : public ZDialog
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

protected:

    virtual void paintEvent(QPaintEvent *event);

private:

    void initUI();
    void initConnection();

    QString m_strSkinName;

    ContentWidget *m_contentWid;
    TitleWidget *m_titleWid;
    SkinWidget *m_sklinWid;

private slots:
    void showSkinWidget();

    void changeSkin(QString skin_name);
};

#endif // MAINWINDOW_H
